<div>
    <a class="layui-btn model-a" href="{:url('rbac/addrole')}?id=0">添加用户组</a>
</div>

<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('getRole')}'
    }" lay-filter="edit-table" data-url="{:url('editRole')}" data-key="role_id">
    <thead>
    <tr>
        <th lay-data="{field:'role_id', width:80, sort: true}">ID</th>
        <th lay-data="{field:'pid', sort: true, width:80}">pid</th>
        <th lay-data="{field:'role_name'}">身份</th>
        <th lay-data="{toolbar: '#manipulate', minWidth:250, fixed: 'right'}">操作</th>
    </tr>
    </thead>
</table>

<script type="text/html" id="manipulate">

    <a class="layui-btn layui-btn-mini model-a" href="{:url('rbac/addrole')}?id={{ d.role_id }}">添加</a>
    <a class="layui-btn layui-btn-mini model-a" href="{:url('rbac/editrole')}?id={{ d.role_id }}">修改</a>
    <a class="layui-btn layui-btn-mini" href="{:url('rbac/userrole')}?id={{ d.role_id }}">修改权限</a>
</script>

